package com.caissa.springboot.starter.leaf.domain;

/**
 * 错误码
 *
 * @author zhangqiang
 * @date 2020/5/19 AM10:15
 */
public enum LeafCodeEnum {
    /**
     * 失败
     */
    PARAMS_ID_FAIL("LEAF-A1001", "请求id获取失败", "请求id获取失败"),
    /**
     * 失败
     */
    PARAMS_URL_FAIL("LEAF-A1003", "请检查配置leaf.url.prefix", "请检查配置leaf.url.prefix"),
    /**
     * 失败
     */
    PARAMS_BIZ_TYPE_FAIL("LEAF-A1004", "请求参数中bizType不可用", "请求参数中bizType不可用"),
    /**
     * 失败
     */
    PARAMS_NUM_FAIL("LEAF-A1005", "请求参数中num取值1-10000", "请求参数中num取值1-10000"),
    ;

    private String code;
    private String codeMsg;
    private String desc;

    private LeafCodeEnum(String code, String codeMsg, String desc) {
        this.code = code;
        this.codeMsg = codeMsg;
        this.desc = desc;
    }

    /**
     * 获取Code
     *
     * @return
     */
    public String getCode() {
        return code;
    }

    /**
     * 获取CodeMsg
     *
     * @return
     */
    public String getCodeMsg() {
        return codeMsg;
    }

    /**
     * 获取Desc
     *
     * @return
     */
    public String getDesc() {
        return desc;
    }

}
